<template>
  <div>
    用户管理12

    <div class="icon" @mouseenter="aaa" @mouseleave="bbb">
      <div :class="['box', isShow ? 'show' : '']"></div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isShow: false
    }
  },
  methods: {
    aaa() {
      this.isShow = true
    },
    bbb() {
      this.isShow = false
    }
  }
}
</script>

<style lang="less" scoped>
.icon {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 1px solid red;
  border-radius: 50%;
  right: 200px;
}

.box {
  width: 150px;
  height: 300px;
  border: 1px solid red;

  position: absolute;
  top: 25px;
  left: -50px;
  transition: all 1.5s;
  opacity: 0;
}

.show {
  transition: all 1.5s;
  opacity: 1;
}

// @keyframes box {
//   0% {
//     opacity: 0;
//   }
//   100% {
//     opacity: 1;
//   }
// }
</style>
